package com.stadium.web.service;

import com.fastsite.common.api.ApiException;
import com.fastsite.secured.ApiTokenValueExtractor;
import org.springframework.stereotype.Service;
import org.springframework.web.context.request.WebRequest;

import javax.servlet.http.HttpServletRequest;

@Service
public class ApiTokenValueExtractorImpl implements ApiTokenValueExtractor {
    @Override
    public String extract(WebRequest webRequest) throws ApiException {
        String token =   webRequest.getHeader("token");
        return token;
    }
}
